package com.zj.common;

import com.zj.common.exception.CommonException;

/**
 * @author zhangbo
 * @program: PDF-helper
 * @ClassName Assert
 * @description: $ 断言
 * @date 2023-05-23 21:59:19
 */
public class Assert {


    public static CommonHandler trueThrowErr(Boolean condition) {
        return () -> {
            if (condition) {
                throw new CommonException("系统异常");
            }
        };
    }

}
